// eslint-disable-next-line import/namespace
import { AxiosInstance } from 'axios'
import { ILoginParams } from '@/api/types/base'
export default (axios: AxiosInstance) => ({
  login(data: ILoginParams) {
    return axios.post(`/api/user/login`, { ...data })
  },
})

// https://blog.51cto.com/u_15127574/2762669
